isPointInLine

Error AKA approximation

  1. bool isPointInLine(T px, T py, T lx1, T ly1, T lx2, T ly2, float error)
    pure nothrow @nogc @safe
    bool
    isPointInLine
    (
    T
    )
    (
    in T px
    ,
    in T py
    ,
    in T lx1
    ,
    in T ly1
    ,
    in T lx2
    ,
    in T ly2
    ,
    in float error = 0.01
    )
    if (
    isNumeric!T
    )
  2. bool isPointInLine(T[2] point, T[2] lineStart, T[2] lineEnd, float error)
  3. bool isPointInLine(Vector2 point, Vector2 lineStart, Vector2 lineEnd, float error)

Meta